<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<head>
<base href="<%=basePath%>">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="format-detection" content="telephone=no">
  <meta name="format-detection" content="email=no">
  <title>下载APP</title>
<link href="static/css/style.css" rel="stylesheet"></head>

<body>
  <div class="content guide">
    <div class="wrapper rel">
      <div class="piece">
        <dl class="QRcode">
          <dt class="f0">
            <img class="QRcode-img" src="" alt="">
          </dt>
          <dd class="tc pt10">扫一扫，快速下载</dd>
        </dl>
        <div class="download dib">
          <a class="download-item icon-ios-download" href="${ios.apkUrl }"></a>
          <a class="download-item icon-android-download" href="${android.apkUrl }"></a>
        </div>
      </div>
    </div>
  </div>
  <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  <script>
    var uAgent = window.navigator.userAgent;
    var isAndroid = uAgent.match(/android/i);
    var isIOS = uAgent.match(/iphone/i);
    var oImg = document.querySelector('.QRcode-img')
    if (isIOS) {
      // ios 二维码地址
      oImg.src = "${ios.qcodeUrl }"

    } else {
      // Android 二维码地址
      oImg.src = "${android.qcodeUrl }"
    }
  </script>

<script type="text/javascript" src="static/js/lib/vendor.js"></script><script type="text/javascript" src="static/js/lib/app.js"></script></body>

</html>
